package Message.Public
{
    import Framework.Serialize.*;
    import flash.utils.*;

    public class SBusinessInfo extends Object
    {
        public var entityId:SEntityId;
        public var status:EBusinessStatus;
        public var name:String;
        public var level:int;
        public var camp:int;
        public var coin:int;
        public var gold:int;
        public var items:Dictionary;

        public function SBusinessInfo()
        {
            
        }

        public function __write(param1:SerializeStream) : void
        {
            this.entityId.__write(param1);
            this.status.__write(param1);
            param1.writeString(this.name);
            param1.writeByte(this.level);
            param1.writeByte(this.camp);
            param1.writeInt(this.coin);
            param1.writeInt(this.gold);
            DictBusinessItemUpdateHelper.write(param1, this.items);
            
        }

        public function __read(param1:SerializeStream) : void
        {
            this.entityId = new SEntityId();
            this.entityId.__read(param1);
            this.status = EBusinessStatus.__read(param1);
            this.name = param1.readString();
            this.level = param1.readByte();
            this.camp = param1.readByte();
            this.coin = param1.readInt();
            this.gold = param1.readInt();
            this.items = DictBusinessItemUpdateHelper.read(param1);
            
        }

    }
}
